package net.cyue.wj;

import net.cyue.nest.nestjava.core.NestApplication;
import net.cyue.nest.nestjava.core.NestFactory;
import net.cyue.nest.nestjava.platform.std.StandardAdapter;
import net.cyue.jpa.JPAUtil;

public class Main {
    public static void main(String[] args) {
        JPAUtil.init(
            "net.cyue.wj",
            "jdbc:mariadb://localhost:3306/cyue-wj",
            "root",
            "weifei",
            "net.cyue.wj.user.entity.User"
        );

        NestApplication<StandardAdapter> app = NestFactory.create(APPModule.class);
        app.setGlobalPrefix("/api");
        app.listen(8080);
    }
}

